WPTravelEngine\Core\Booking D

Total Complexity 216
Dependencies 12
Dependents 2
Total lines 1,802
Lines of code 1,219
Logical lines of code 602
Comment lines 341
Methods 40
Properties 2

Methods 40

Method Rating Maintainability Complexity Lines of code
init_hooks()
D
18
48 245
payment_gateway_callback_backward_compatibility()
D
22
39 214
map_payment_data_to_new_booking_structure()
B
33 14 105
payment_gateway_callback_listener()
A
36 13 88
prepare_legacy_order_metas()
A
41 11 54
booking_process()
A
39 10 64
get_callback_token_payload()
S
51 7 27
due_payment_process()
S
47 5 35
update_order_items()
S
48 5 34
init()
S
52 4 28
update_payment_info()
S
52 4 23
prepare_billing_info()
S
60 4 13
send_emails()
S
61 4 11
get_thankyou_url()
S
54 3 23
get_tokened_url()
S
56 3 18
get_booking_info_by_id()
S
64 4 10
update_booking()
S
67 4 7
create_payment()
S
46 1 41
check_payments()
S
57 2 17
error()
S
65 3 9
is_booking_request()
S
77 3 3
insert_booking()
S
54 1 23
booking_only()
S
56 1 19
direct_bank_transfer()
S
59 1 15
instance()
S
72 2 6
redirect()
S
68 2 7
is_valid_nonce()
S
76 2 3
create_booking()
S
69 2 7
is_due_payment_request()
S
77 2 3
update_billing_info()
S
72 2 6
remove_tokened_query_params()
S
72 1 11
may_be_cart_is_empty()
S
76 1 4
__construct()
S
78 1 4
get_cancel_url()
S
65 1 10
get_return_url()
S
78 1 3
get_notification_url()
S
65 1 10
get_success_url()
S
65 1 10
init_shortcodes()
S
76 1 4
includes()
S
91 1 2
get_booking_cart()
S
82 1 3